export tag=v3.0
root:
	export ROOT=github.com/cncamp/service2

build:
	echo "building service2 binary"
	mkdir -p bin/amd64
	CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/amd64 .

release: build
	echo "building service2 container"
	docker build -t fhjz1105/service2:${tag} .

push: release
	echo "pushing fhjz1105/service2"
	docker push fhjz1105/service2:${tag}